<?php

namespace App\Http\Resources\Counter;

use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\JsonResource;

class AssistantResource extends JsonResource
{
    /**
     * Transform the resource into an array.
     *
     * @return array<string, mixed>
     */
    public function toArray(Request $request): array
    {
        return [
            'id' => $this->id,
            'telephone' => $this->telephone,
            'avatar' => $this->avatar,
            'last_login_time' => $this->last_login_time,
            'nickname' => $this->nickname,
            'assistant_status' => $this->assistant_status,
        ];
    }
}
